# write by hashaki first edit on 20181026  last change on 20181026
# TEST FOR THE ANALYZER
from numpy import ndarray

class TestAnalyzer:
    def __init__(self,data1,data2):
        '''传进一个持仓和总金额'''
        self.data1=ndarray(data1)           # 持仓
        self.data2=ndarray(data2)           # 总金额
        self.money_in_pocket=self.data2-self.data1

    def maxWin(self):
        '''计算最大盈利'''
        pass
    
    def maxLost(self):
        '''计算最大亏损'''
        pass

    def allWL(self):
        '''计算总盈亏'''
        pass

    def winRate(self):
        '''计算胜率'''
        pass

    def firstTrade(self):
        '''第一笔交易'''
        pass

    def averageWinning(self):
        '''盈利交易平均值'''
        pass
    
    def averageLosing(self):
        '''亏损交易平均值'''
        pass
    
    def profitLossRatio(self):
        '''盈亏比'''
        pass
    
    def maxVolume(self):
        '''最大持仓'''
        pass
    